<template>
    <highlightjs style="width: 100%" :language="language" :autodetect="false" :code="code"></highlightjs>
</template>

<script setup lang="ts">
    defineProps({
        language:{
            type:String,
            default:'JavaScript'
        },
        code:{
            type:String,
            default:''
        }
    })
</script>

<style scoped>

</style>
